#ifndef ARROWWIDGET_H
#define ARROWWIDGET_H

#include <QWidget>

class ArrowWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ArrowWidget(QWidget *parent = nullptr);


    void setStartPos(int startX);

    void setTriangleInfo(int width, int height);

    void setCenterWidget(QWidget* widget);

protected:
    void paintEvent(QPaintEvent *) override;

private:
    int m_startX;
    int m_triangleWidth;
    int m_triangleHeight;
};
#endif // ARROWWIDGET_H
